<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<form id="pagerForm" method="get" action="<c:url value="/color/lookuplist.do"/>">
	<input type="hidden" name="pageNum" value="1"/> 
	<input type="hidden" name="numPerPage" value="${pager.numPerPage}" />
</form>
<div class="pageContent">
	<table class="table" layoutH="50" targetType="dialog" width="100%">
		<thead>
			<tr>
				<th width="45%">代码</th>
				<th width="45%">颜色</th>
				<th width="10%">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${colors}" var="color">
				<tr>
					<td>
						${color.code}
					</td>
					<td>
						${color.description}
					</td>
					<td>
						<a class="btnSelect" href="javascript:$.bringBack({id:'${color.id}',description:'${color.description}'})" title="查找带回">选择</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span> 
			<select class="combox" name="numPerPage" onchange="dialogPageBreak({numPerPage:this.value})">
				<option value="20" <c:if test="${pager.numPerPage == 20}">selected="selected"</c:if>>20</option>
				<option value="50" <c:if test="${pager.numPerPage == 50}">selected="selected"</c:if>>50</option>
				<option value="100" <c:if test="${pager.numPerPage == 100}">selected="selected"</c:if>>100</option>
				<option value="200" <c:if test="${pager.numPerPage == 200}">selected="selected"</c:if>>200</option>
			</select> 
			<span>条，共${pager.totalCount}条</span>
		</div>
		<div class="pagination" targetType="dialog" totalCount="${pager.totalCount}" numPerPage="${pager.numPerPage}" pageNumShown="10" currentPage="${pager.currentPage}"></div>
	</div>
</div>